<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Thymeleaf入门</title>
</head>
<body>
	<span th:text="Hello"></span>
	<hr />
	<span th:text="${msg}"></span>
	<hr />
	<input type="text" name="name" th:value="${msg}">
	<hr />
	<span th:text="${#strings.isEmpty(msg)}"></span>
	<hr />
	<span th:text="${#strings.contains(msg,'9')}"></span>
	<span th:text="${#strings.contains(msg,'T')}"></span>
	<hr />
	<span th:text="${#strings.startsWith(msg,'a')}"></span>
	<span th:text="${#strings.startsWith(msg,'T')}"></span>
	<hr />
	<span th:text="${#strings.endsWith(msg,'a')}"></span>
	<span th:text="${#strings.endsWith(msg,'案例')}"></span>
	<hr />
	<span th:text="${#strings.length(msg)}"></span>
	<hr />
	<span th:text="${#strings.indexOf(msg,'h')}"></span>
	<hr />
	<span th:text="${#strings.substring(msg,13)}"></span>
	<span th:text="${#strings.substring(msg,13,14)}"></span>
	<hr />
	<span th:text="${#strings.toUpperCase(msg)}"></span>
	<span th:text="${#strings.toLowerCase(msg)}"></span>
	<hr />
	<span th:text="${#dates.format(key)}"></span>
	<hr />
	<span th:text="${#dates.format(key,'yyyy/MM/dd')}"></span>
	<hr />
	<span th:text="${#dates.year(key)}"></span>-
	<hr />
	<span th:text="${#dates.month(key)}"></span>-
	<hr />
	<span th:text="${#dates.day(key)}"></span>
	<hr />
	<span th:if="${sex} == '男'"> 性别：男 </span>
	<span th:if="${sex} == '女'"> 性别：女 </span>
	<div th:switch="${id}">
		<span th:case="1">ID 为 1</span> <span th:case="2">ID 为 2</span> <span
			th:case="3">ID 为 3</span>
	</div>
	<table border="1">
		<tr>
			<th>ID</th>
			<th>Name</th>
			<th>Age</th>
			<th>Index</th>
			<th>Count</th>
			<th>Size</th>
			<th>Even</th>
			<th>Odd</th>
			<th>First</th>
			<th>last</th>
		</tr>
		<tr th:each="u,var : ${list}">
			<td th:text="${u.id}"></td>
			<td th:text="${u.name}"></td>
			<td th:text="${u.age}"></td>
			<td th:text="${var.index}"></td>
			<td th:text="${var.count}"></td>
			<td th:text="${var.size}"></td>
			<td th:text="${var.even}"></td>
			<td th:text="${var.odd}"></td>
			<td th:text="${var.first}"></td>
			<td th:text="${var.last}"></td>
		</tr>
	</table>
	<hr>
	<table border="1">
		<tr>
			<th>ID</th>
			<th>Name</th>
			<th>Age</th>
		</tr>
		<tr th:each="maps : ${map}">
			<td th:text="${maps}"></td>
		</tr>
	</table>
	<th />
	<table border="1">
		<tr>
			<th>KEY</th>
			<th>ID</th>
			<th>Name</th>
			<th>Age</th>
		</tr>
		<tr th:each="maps : ${map}">
			<td th:each="entry:${maps}" th:text="${entry.key}"></td>
			<td th:each="entry:${maps}" th:text="${entry.value.id}"></td>
			<td th:each="entry:${maps}" th:text="${entry.value.name}"></td>
			<td th:each="entry:${maps}" th:text="${entry.value.age}"></td>
		</tr>
	</table>
</body>
</html>